﻿using System.IO;
using Newtonsoft.Json;

namespace Kurax.BoardGames.Client.Engine.Commands {
    public class QueryUser : CommandBase {
        public override int CommandId {
            get {
                return 4096; // 0, 0x10, 0, 0
            }
        }

        protected internal override byte[] GetBodyData() {
            return new byte[0];
        }

        protected internal override void OnServerResponsed(byte[] data) {
            var json = DecryptString(data);
            using(var reader = new JsonTextReader(new StringReader(json)) {
                CloseInput = true,
            }) {
                //
            }
        }
    }
}
